package RPPM.service.Impl;

import RPPM.dao.ExecutorDao;
import RPPM.dao.impl.ExecutorDaoImpl;
import RPPM.service.ExeService;

import java.util.List;
import java.util.Map;

public class ExeServiceImpl implements ExeService {
    ExecutorDao exeDao = new ExecutorDaoImpl();
    @Override
    public List<Map<String, Object>> findCoursesByExeid( ) {
        return exeDao.ShowCourse();
    }

    @Override
    public List<Map<String, Object>> findCoursesByCouname(String searchtext) {
        return exeDao.findCoursesByCouname(searchtext);
    }

    @Override
    public List<Map<String, Object>> getNoPassPlan() {
        return exeDao.getNoPassPlan();
    }

    @Override
    public boolean passPlan(Map<String, Object> map) {
        return exeDao.passPlan(map);
    }

    @Override
    public List<Map<String, Object>> findCoursesNotPassedByCouname(String searchtext) {
        return exeDao.findCoursesNotPassedByCouname(searchtext);
    }
}
